package com.jiayou

import cn.hutool.json.JSONUtil
import com.jiayou.game.message.MessageChannel
import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest

@SpringBootTest
class GameApplicationTests {

    @Test
    fun contextLoads() {
    }



}

fun main() {
    val s = "{\"data\":{\"data\":[[1,0,0],[0,0,0],[0,0,0]],\"first\":2,\"gameHome\":\"d90c2ac3-bbc0-46c8-bd5b-368abc090106\",\"pLAYER_ONE\":1,\"pLAYER_TWO\":2,\"player1\":\"141\",\"player2\":\"306\"},\"type\":\"GAME\"}"
    println(JSONUtil.parseObj(s).toBean(MessageChannel::class.java))
}